package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Table;
import javax.validation.constraints.NotNull;

/**
 * Created by Lyon on 2017/5/9.
 */
@Data
@Table(name = "user_addr")
public class UserAddr extends Model {

    @NotNull
    private Integer uid;
    @NotBlank
    private String province;
    @NotBlank
    private String city;

    private String area;
    @NotBlank
    private String addr;
}
